import Domscroll from './domscroll'

const install = function(Vue) {
  Vue.directive('domscroll', Domscroll)
}

if (window.Vue) {
  window.domscroll = Domscroll
  Vue.use(install); // eslint-disable-line
}

Domscroll.install = install
export default Domscroll
